package $PACKAGENAME$;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;

import cn.supermay.api.common.CustomDateTimeSerializerUtil;

/**
 * 表实体映射类：
 * @author root
 *
 */
@Entity  
@Table(name="$TABLE$")
public class $ENTITY$ implements Serializable{
	
	private static final long serialVersionUID = #RANDOMLONG#;

	@Id
	private String id; // ID

    /** xxx名称 */
    @ApiModelProperty(name="name",value="xxx名称",required=true)
	@Column(name="name",columnDefinition="varchar(100) COMMENT 'xxx名称'")
	private String name;

	/** 描述 */
	@ApiModelProperty(name="name",value="描述",required=false)
	@Column(name="description",columnDefinition="varchar(200) COMMENT '描述'")
	private String description;

    /** 创建时间 */
	@Column(name="create_time",columnDefinition="Date COMMENT '创建时间'")
	private Date createTime; // 创建时间

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreateTime() {
		return createTime;
	}

	@JsonSerialize(using=CustomDateTimeSerializerUtil.class)
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}
